package lab02.test07;

public class Person {
    String name;
    int age;
    String idnumber;

    public void setInformation(String name,int age,String idnumber) {
        this.name = name;
        this.age = age;
        this.idnumber = idnumber;
    }

    public String toString() {      //将属性作为字符串返回
        return "姓名:" + name + " 年龄:" + age + " 身份证号:" + idnumber;
    }
}
